#ifndef FIELDCREATION_HH
#define FIELDCREATION_HH

#include "Pulse.h"
#include "NoPulse.h"
#include "SquarePulse.h"
#include "NewParameters.h"

class FieldCreation
{
public:
  static Pulse *NewPulse(NewParameters params)
  {
    if(params.getFieldPulseType()=="square")
      return new SquarePulse();
    if(params.getFieldPulseType()=="nopulse")
      return new NoPulse();
    return NULL;
  }
};

#endif
